fstats_helper_routines Module



Functions

public pure function column_values(x) result(rst)

Copies a column to a work array for the existing array algorithms.

Arguments

Type IntentOptional Attributes Name
class(data_column), intent(in) :: x

The input column; unallocated storage is treated as empty.

Return Value real(kind=real64), allocatable, dimension(:)

An independent array with the same count and values as x. If x is not a real-valued column, an array of NaN's is returned the same size as x.

public pure function difference(x) result(rst)

Computes the difference between elements in an array.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in), dimension(:) :: x

The N-element array on which to operate.

Return Value real(kind=real64), allocatable, dimension(:)

The (N-1)-element array containing the differences between adjacent elements.

public pure elemental function factorial(x) result(rst)

Computes the factorial of X.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: x

The value whose factorial is to be computed.

Return Value real(kind=real64)

The result.